package com.sam.properties;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;


@Component
public class EnvironmentReader {
    @Autowired
    private Environment environment;
    @Autowired
    private ApplicationArguments applicationArguments;

    public void readEnvironment(String name){
        String value = environment.getProperty(name);
        System.out.println(value);
    }
}
